﻿@using Framework.Util.Helpers
@{
    var match = ViewBag.Match as Project.Domain.Entities.Match;
    var bet = ViewBag.Bet as Project.Domain.Entities.Bet;
    var betDetail = ViewBag.BetDetail as Project.Domain.Entities.BetDetail;
    }
<div style="color: #808080;">       
    <div class="divInpUsername" style="width: 100%; margin-top: 5px !important; height: 20px;">
        <span>
            @match.HomeTeam.TeamName vs @match.AwayTeam.TeamName
        </span>
    </div>
        @switch (bet.Type)
        {
            case 1:
                {
                    <div style="float:left; margin-left:5px; width:100%; color:#333333;">3Way</div>
                    switch (betDetail.Type)
                    {
                        case 1:
                            {
                                <div style="float:left; margin-left:5px; width:100%;color:#333333;">@match.HomeTeam.TeamName Win:</div> 
                                break;
                            }
                        case 2:
                            {
                                <div style="float:left; margin-left:5px; width:100%;color:#333333;">Draw</div>
                                break;
                            }
                        default:
                            {
                                <div style="float:left; margin-left:5px; width:100%;color:#333333;">@match.AwayTeam.TeamName Win: </div>
                                break;
                            }
                    }
                    break;
                }
            case 2:
                {
                    <div style="float:left; margin-left:5px;">Handicap @Html.Slip(bet.ScoreHomeBefore.ToString()) : @Html.Slip(bet.ScoreAwayBefore.ToString())</div>
                    switch (betDetail.Type)
                    {
                        case 1:
                            {
                                <div>@match.HomeTeam.TeamName Win:</div> 
                                break;
                            }
                        case 2:
                            {
                                <div>Draw</div>
                                break;
                            }
                        default:
                            {
                                <div>@match.AwayTeam.TeamName Win: </div>
                                break;
                            }
                    }
                    break;
                }
            case 3:
                {
                   <div style="float:left; margin-left:5px;">Asian Handicap @Html.Slip(bet.ScoreHomeBefore.ToString()) : @Html.Slip(bet.ScoreAwayBefore.ToString())</div>
                    switch (betDetail.Type)
                    {
                        case 1:
                            {
                                <div>@match.HomeTeam.TeamName Win:</div> 
                                break;
                            }
                        default:
                            {
                                <div>Draw</div>
                                break;
                            }
                    }
                    break;
                }
            case 4:
                {                        
                    <div style="float:left; margin-left:5px;">Under/Over @Html.Slip(betDetail.RateUnderOver.ToString())</div>
                    switch (betDetail.Type)
                    {
                        case 1:
                            {
                                <div>Under</div> 
                                break;
                            }
                        default:
                            {
                                <div>Over</div>
                                break;
                            }
                    }
                    break;
                }
            default:
                {                        
                    <div style="float:left; margin-left:5px;">Exact Score @Html.Slip(bet.ScoreHomeBefore.ToString()) : @Html.Slip(bet.ScoreAwayBefore.ToString())</div>                    
                    break;
                }
        }
    <div>
        <input type="text" name="stake" value=""  style=""/>
    </div>
    <div>

    </div>
    <p>
        <input type="text" name="odds" value="" style="" />
    </p>    
   <div id="divError"></div>
    <div onclick="return login();" class="btLogin"></div>
</div>